import {
	myRequest
} from '@/utils/api.js'

export const getPage = (query) => myRequest({
	url: '/mall/orderrefund/page',
	method: 'get',
	data: query,
	showLoading: true
});

export const getObj = (id) => myRequest({
	url: '/mall/orderrefund/' + id,
	method: 'get',
	showLoading: true
});

export const refundObj = (data) => myRequest({
	url: '/mall/orderrefund/refund',
	method: 'post',
	data: data,
	showLoading: true
});
